import { request } from '../../../../config/request'
import config from '../../../../config/config'



// 外部配置请求改写例子
export async function getList(params) {

    return request({
        url: '/sys/role/list',
        method: 'GET',
        data: params,
        ...paramObj
    });
};

// 单个启用禁用
export async function updateStatus(params) {
    return request({
        url: `admin/permissionRole/updateStatus`,
        method: 'POST',
        headers: {
            "Content-type": "application/json"
        },
        data: params
    });
};

// 批量删除
export async function batchDelete(params) {
    return request({
        url: `admin/permissionRole/delete`,
        method: 'POST',
        headers: {
            "Content-type": "application/json"
        },
        data: params
    });
};

// 批量启用禁用
export async function batchUpdate(params) {
    return request({
        url: `admin/permissionRole/updateStatus`,
        method: 'POST',
        headers: {
            "Content-type": "application/json"
        },
        data: params
    });
};

// // 删除校验
// export async function checkDelete(params) {
//     return request({
//         url: `${config.sysApiHeader}/v1/pearlriver/comm/role/check/role`,
//         method: 'GET',
//         data: params
//     });
// };




















